
'use strict'
import request from '@/utils/request'

/**
 * 查询档案信息
 */
export function get(data) {
    return request({
        baseURL: '/API-ENTERPRISE-BACKEND/',
        url: '/backend/craftsmanLibrary/get',
        method: 'POST',
        data
    })
}
/**
 * 新增档案信息
 */
export function insertRecord(data) {
    return request({
        baseURL: '/API-ENTERPRISE-BACKEND/',
        url: '/backend/craftsmanLibrary/insertRecord',
        method: 'POST',
        data
    })
}
/**
 * 编辑档案信息
 */
export function updateRecord(data) {
    return request({
        baseURL: '/API-ENTERPRISE-BACKEND/',
        url: '/backend/craftsmanLibrary/updateRecord',
        method: 'POST',
        data
    })
}
/**
 * 删除档案信息
 */
export function deleteRecord(data) {
    return request({
        baseURL: '/API-ENTERPRISE-BACKEND/',
        url: '/backend/craftsmanLibrary/deleteRecord',
        method: 'POST',
        data
    })
}
/**
 * 字典
 */
export function getDictByCode(dictCode) {
    return request({
        baseURL: '/API-ENTERPRISE-BACKEND/',
        url: '/backend/sysDictionary/getDictByCode',
        method: 'POST',
        data: {
            dictCode
        }
    })
}